<?php
/*
 * Created on 2013-9-20
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

	$link=mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
	if(!$link)
	{
		echo 'link to DB failed, please mail to admin~';
		die( "Error:" . $mysql->errmsg() );
	}

	mysql_select_db(SAE_MYSQL_DB,$link);
	$mysql = new SaeMysql();
?>
